package com.code.day18;

import java.util.Arrays;

public class MyArrayList<E> implements MyList<E>{
    Object[] obj = new Object[10];
    int size = 0;
    public boolean add(E e){
        obj[size]=e;
        size++;
        return true;
    }
    public E get(int index){
        return (E)obj[index];
    }
    public  String toString(){
        return Arrays.toString(obj);
    }


}
